<?php

namespace Cours\QuizzBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Reponse
 *
 * @ORM\Table(name="reponse")
 * @ORM\Entity
 */
class Reponse
{
    /**
     * @var boolean
     *
     * @ORM\Column(name="juste", type="boolean", nullable=false)
     */
    private $juste;

    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var \Cours\QuizzBundle\Entity\FosUser
     *
     * @ORM\ManyToOne(targetEntity="Cours\QuizzBundle\Entity\FosUser")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="iduser", referencedColumnName="id")
     * })
     */
    private $iduser;

    /**
     * @var \Cours\QuizzBundle\Entity\Question
     *
     * @ORM\ManyToOne(targetEntity="Cours\QuizzBundle\Entity\Question")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="idquestion", referencedColumnName="id")
     * })
     */
    private $idquestion;



    /**
     * Set juste
     *
     * @param boolean $juste
     * @return Reponse
     */
    public function setJuste($juste)
    {
        $this->juste = $juste;
    
        return $this;
    }

    /**
     * Get juste
     *
     * @return boolean 
     */
    public function getJuste()
    {
        return $this->juste;
    }

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set iduser
     *
     * @param \Cours\QuizzBundle\Entity\FosUser $iduser
     * @return Reponse
     */
    public function setIduser(\Cours\QuizzBundle\Entity\FosUser $iduser = null)
    {
        $this->iduser = $iduser;
    
        return $this;
    }

    /**
     * Get iduser
     *
     * @return \Cours\QuizzBundle\Entity\FosUser 
     */
    public function getIduser()
    {
        return $this->iduser;
    }

    /**
     * Set idquestion
     *
     * @param \Cours\QuizzBundle\Entity\Question $idquestion
     * @return Reponse
     */
    public function setIdquestion(\Cours\QuizzBundle\Entity\Question $idquestion = null)
    {
        $this->idquestion = $idquestion;
    
        return $this;
    }

    /**
     * Get idquestion
     *
     * @return \Cours\QuizzBundle\Entity\Question 
     */
    public function getIdquestion()
    {
        return $this->idquestion;
    }
}